- content_for :meta do
  %meta{:name => "Description", :content => "This page shows #{params[:term] if params[:term]} photo galleries on Photographer Dan Stewart's website"}
  %meta{:name => "Abstract", :content => "Search results for #{params[:term] if params[:term]}"}
  %meta{:name => "Keywords", :content => (params[:term] if params[:term])}
- content_for :title do
  = "#{params[:term] if params[:term]} galleries"
- if request.request_uri == "/galleries?display=sports"
  %div.sports_types
    [
    %a{:href => search_galleries_url + "?term=soccer", :title => "Soccer Galleries"}Soccer
    |
    %a{:href => search_galleries_url + "?term=football", :title => "Football Galleries"}Football
    |
    %a{:href => search_galleries_url + "?term=volleyball", :title => "Volleyball Galleries"}Volleyball
    |
    %a{:href => search_galleries_url + "?term=cross%20country", :title => "Cross Country Galleries"}Cross Country
    ]
= render :partial => "galleries"